<template>
  <div>
    <MovieNav></MovieNav>
    <div class="nav-wrap">
      <div class="item">全城<span class="drop"></span></div>
      <div class="item">品牌<span class="drop"></span></div>
      <div class="item">特色<span class="drop"></span></div>
    </div>
    <div class="item-a" v-for="v in arr" :key="v.id" @click="cinemaHandle(v.id)">
      <div class="title-block">
        <div class="title">
          <span>{{v.name}}</span>
          <span class="price-block">
            <span class="price">{{v.price}}</span><span class="q">元起</span>
          </span>
        </div>
        <div class="location-block">
          <div class="flex">
            {{v.address}}
          </div>
          <div class="distance">{{v.distance}}</div>
        </div>
        <!-- <div class="flex"></div> -->
        <div class="label-block">
          <div class="endorse">改签</div>
          <div class="snack">小吃</div>
          <div class="vipTag">折扣卡</div>
          <div class="hallType">4D厅</div>
          <div class="hallType">巨幕厅</div>
        </div>

        <div class="discount-block"></div>
      </div>
    </div>
           <div class="bottom"></div>
    
  </div>
</template>
 
<script>
import getLink from "@/api/getLink.js";

export default {
  data() {
    return {
      arr: [],
    };
  },
  mounted() {
    getLink("/apidl/movie/yy").then((res) => {
      this.arr = res.data;
    });
  },
   methods:{
    cinemaHandle(text){
    this.$router.push({path:"/dzpg",query: {sd : text } })

    }
  }
};
</script>


<style scoped>
.nav-wrap {
  width: 100%;
  height: 0.7rem;
  display: flex;
  line-height: 0.7rem;
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.tab {
  height: 0.4rem;
}
.item {
  flex: 1;
  text-align: center;
  font-size: 0.25rem;
  position: relative;
  color: #666;
}
.drop{
    display: inline-block;
    position: relative;
    top: .04rem;
    width: 0;
    height: 0;
    margin-left: .1rem;
    border: .1rem solid transparent;
    border-top-color: #b0b0b0;
}
.item-a {
  padding: 0.13rem 0.6rem 0.33rem 0.3rem;
  background-color: #fff;
    border-bottom: 1px solid #eaeaea;

}
.title {
  width: 80%;
  padding-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 0.4rem;
  line-height: 0.4rem;
  font-size: 0.35rem;
  color: #000;
}
.flex {
  width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-block {
  padding-top: 0.12rem;
  padding-left: 0.3rem;
}
.price {
  color: #f03d37;
  /* font-size: .35rem; */
}
.q {
  color: #f03d37;
  font-size: 0.2rem;
}
.location-block {
  display: flex;
  justify-content: space-between;
  margin-top: 0.1rem;
  font-size: 0.25rem;
  color: #666;
}
.label-block {
  display: flex;
  /* justify-content: space-between; */
  height: 0.4rem;
  line-height: 0.4rem;
  margin-top: 0.1rem;
  font-size: 0.16rem;
  text-align: center;
  /* margin-bottom: .1rem; */
}
.label-block div {
  margin-right: 0.2rem;
  padding: 0 0.1rem;
}
.endorse {
  color: #589daf;
  border: 1px solid #589daf;
}
.snack {
  color: #f90;
  border: 1px solid #f90;
}
.vipTag {
  color: #f90;
  border: 1px solid #f90;
}
.hallType {
  color: #589daf;
  border: 1px solid #589daf;
}
.hallType {
  color: #589daf;
  border: 1px solid #589daf;
}
.hallType {
  color: #589daf;
  border: 1px solid #589daf;
}
.bottom{
  height: 1rem;
}
</style>